/** 
 * Copyright 2011 Noranj LTD
 *
 */
package com.noranj.web.server;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.Set;
import com.google.gwt.user.server.rpc.RemoteServiceServlet;
import com.noranj.web.client.DocumentsService;
import com.noranj.web.shared.DocumentDTO;

/**
 * MessagesServiceImpl is just a placeholder in this stage of the Formak app.  
 * It communicates hardwired sample status items for Formak's main 'Document' panel.  In the 
 * final version of Formak, live data will be used instead.
 */
@SuppressWarnings("serial")
public class DocumentsServiceImpl extends RemoteServiceServlet implements
	DocumentsService {

  public DocumentsServiceImpl() {
  }

  public List<DocumentDTO> getDocuments(Set<Long> friendIds) {
    List<DocumentDTO> documentDTOs = new ArrayList<DocumentDTO>();

    documentDTOs.add(new DocumentDTO("50 kg KarboHydrat petsuim",
        "About my Invoices ....",
        new Date()));
    
    documentDTOs.add(new DocumentDTO(
        "3 box Nitrat Banzenil", "would you let me know if havent",
        new Date()));
    
    documentDTOs.add(new DocumentDTO("17 Package Extra food",
        "any body can send it to me asap", new Date()));
    
    documentDTOs
        .add(new DocumentDTO(
            "certification approved",
            "send your supportive document to continue work", new Date()));
    
    documentDTOs.add(new DocumentDTO("Notificatio!Aramex",
        " your shippment is done.", new Date()));
    
    documentDTOs
        .add(new DocumentDTO(
            "frenchize proposal",
            "The biggest company invited you to make new brand", new Date()));
    
    documentDTOs.add(new DocumentDTO(
        "Request for Quota", "would you send me last price list",
        new Date()));
    


    return documentDTOs;
  }

} // end class
